package com.site.wisdom_construction.service.personnelModule;

import com.site.wisdom_construction.dao.personnelModule.EducationDangerNoticeRecordDao;
import com.site.wisdom_construction.entity.personnelModule.EducationDangerNoticeRecord;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/4/19
 * @Description
 */
@Service
public class EducationDangerNoticeRecordService implements EducationDangerNoticeRecordDao {
    @Autowired
    private EducationDangerNoticeRecordDao educationDangerNoticeRecordDao;

    @Override
    public int insertEducationDangerNoticeRecord(Map map) {
        return educationDangerNoticeRecordDao.insertEducationDangerNoticeRecord(map);
    }

    @Override
    public int deleteEducationDangerNoticeRecord(Map map) {
        return educationDangerNoticeRecordDao.deleteEducationDangerNoticeRecord(map);
    }

    @Override
    public int updateEducationDangerNoticeRecord(Map map) {
        return educationDangerNoticeRecordDao.updateEducationDangerNoticeRecord(map);
    }

    @Override
    public List<EducationDangerNoticeRecord> findEducationDangerNoticeRecordByPage(Map map) {
        return educationDangerNoticeRecordDao.findEducationDangerNoticeRecordByPage(map);
    }

    @Override
    public long Total(Map map) {
        return educationDangerNoticeRecordDao.Total(map);
    }

    @Override
    public EducationDangerNoticeRecord findEducationDangerNoticeRecordById(Map map) {
        return educationDangerNoticeRecordDao.findEducationDangerNoticeRecordById(map);
    }

    @Override
    public List<EducationDangerNoticeRecord> findEducationDangerNoticeRecordByWorkerCard(Map map) {
        return educationDangerNoticeRecordDao.findEducationDangerNoticeRecordByWorkerCard(map);
    }

    @Override
    public List<EducationDangerNoticeRecord> findEducationDangerNoticeRecordByManagerialId(Map map) {
        return educationDangerNoticeRecordDao.findEducationDangerNoticeRecordByManagerialId(map);
    }

    @Override
    public long TotalByManagerialId(Map map) {
        return educationDangerNoticeRecordDao.TotalByManagerialId(map);
    }
}
